package com.duan.laugh.tx.two.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.codingapi.txlcn.tc.annotation.LcnTransaction;
import com.duan.laugh.tx.one.api.TestA;
import com.duan.laugh.tx.two.mapper.TestAMapper;
import com.duan.laugh.tx.one.service.TestAService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class TestAServiceImpl extends ServiceImpl<TestAMapper, TestA> implements TestAService {
    @LcnTransaction
    @Transactional
    @Override
    public void testTx() {
        baseMapper.insert(new TestA(1L));
    }
}
